From ac34031b4e870f12648af31b4e3677e4fcb462a2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Szil=C3=A1rd=20Pfeiffer?= Date: Sun, 25 Jul 2010 14:46:57 +0200 Subject: [PATCH] Moved the drawing of horizontal grid lines after cell drawing. Without the change if the cell background is set the horizontal grid line cannot be seen. --- gtk/gtktreeview.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 3caa95d7f8..3ccff33cdb 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -4640,23 +4640,6 @@ gtk_tree_view_bin_expose (GtkWidget *widget, background_area.height); } - if (draw_hgrid_lines) - { - if (background_area.y > 0) - gdk_draw_line (event->window, - tree_view->priv->grid_line_gc, - background_area.x, background_area.y, - background_area.x + background_area.width, - background_area.y); - - if (y_offset + max_height >= event->area.height) - gdk_draw_line (event->window, - tree_view->priv->grid_line_gc, - background_area.x, background_area.y + max_height, - background_area.x + background_area.width, - background_area.y + max_height); - } - if (gtk_tree_view_is_expander_column (tree_view, column)) { if (!rtl) @@ -4731,6 +4714,23 @@ gtk_tree_view_bin_expose (GtkWidget *widget, flags); } + if (draw_hgrid_lines) + { + if (background_area.y > 0) + gdk_draw_line (event->window, + tree_view->priv->grid_line_gc, + background_area.x, background_area.y, + background_area.x + background_area.width, + background_area.y); + + if (y_offset + max_height >= event->area.height) + gdk_draw_line (event->window, + tree_view->priv->grid_line_gc, + background_area.x, background_area.y + max_height, + background_area.x + background_area.width, + background_area.y + max_height); + } + if (gtk_tree_view_is_expander_column (tree_view, column) && tree_view->priv->tree_lines_enabled) { -- 2.30.2